using Dapper.Contrib.Extensions;
using Publicuse.Entity.AttributeUtil;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Publicuse.Entity
{
    /// <summary>
    /// 省市县信息
    /// </summary>
    [DBTable("slash_yhm_city", "省市县信息")]
    [Table("slash_yhm_city")]
    [SugarTable("slash_yhm_city")]
    public class City
    {
        public int class_id { get; set; }
        public int class_parent_id { get; set; }
        public string class_index { get; set; }
        public string class_name { get; set; }
        public int class_type { get; set; }

    }

    public class CityExtend
    {
        public string value { get; set; }

        public string label { get; set; }

        public bool isLeaf { get; set; } = false;

        public CityModel[] children { get; set; } = new CityModel[] { };

    }

    public class CityModel
    {
        public string value { get; set; }

        public string label { get; set; }

        public bool isLeaf { get; set; }

        public CityModel[] children { get; set; } = null;

    }
}
